<?php
/**
 * @author Feng
 * @date 2012-6-1
 */
class picture_photo_concept extends system_concept_abstract {
	
	public function __construct($lang) {
		parent::__construct(array('lang' => $lang), array('lang = ?' => $lang));
	}
	
	public function init() {
		$this->setRowClass('picture_photo_row');
		$this->setModel('picture_photo_model', 'photo');
		$this->setJoinModel('picture_photo_locale_model', 'locale.photo_id = photo.id', 'locale');
		$this->setModelCols('photo', array('id', 'hash', 'display_order', 'is_active', 'is_recommend', 'creationtime', 'lastmodified'));
		$this->setModelCols('locale', array('photo_id', 'lang', 'title', 'description'));
	}

}
